package com.ruoyi.system.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.system.service.ISysUserService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/userinfo")
@Api(tags = "系统日志相关接口")
public class SysUserInfoQueryController extends BaseController {
	
	@Autowired
    private ISysUserService userService;
	
	@PostMapping("/queryUserIdsdByRoleIds")
    @ApiOperation(value = "根据角色id查询拥有角色的用户id", notes = "")
	public List<Long> queryUserIdsdByRoleIds(@RequestBody List<Long> roleIds){
		return userService.queryUserIdsdByRoleIds(roleIds);
	}

}
